<?php
declare(staict_types=1);

namespace app\admin\validate;

use think\Validate;

/**
 * 支出验证器
 * @package app\admin\validate
 */
class Expenses extends Validate
{
    // 定义验证规则
    protected $rule = [
        'uid|经办人' => 'require',
        'price|支出金额' => 'require',
        'desc|备注' => 'require',
        'refund_time|支出时间' => 'require',
        'images|发票' => 'require',
    ];

    // 定义验证提示
    protected $message = [
        'uid.require' => '请输入经办人',
        'price.require' => '请输入支出金额',
        'desc.require' => '请输入备注',
        'refund_time.require' => '请选择支出时间',
        'images.require' => '请上传发票',
    ];
}
